package com.vue.admin.system.controller;

import com.alibaba.fastjson.JSONObject;
import com.example.annotations.Auth;
import com.example.annotations.GetMapping;
import com.example.annotations.RestController;

/**
 * @Classname TransactionController
 * @Description TODO
 * @Date 2022/8/20 10:56
 * @Created by XiongXiong
 * @Author: X.I.O
 */
@Auth
@RestController("/vue-admin/transaction")
public class TransactionController {

    @GetMapping("/list")
    public JSONObject listController(){
        String str="{\"code\":20000,\"data\":{\"total\":20,\"items\":[{\"order_no\":\"3Fe6c864-D0a2-F8aE-b8Bd-1C1b0f19A45f\",\"timestamp\":25825046082,\"username\":\"Jason Walker\",\"price\":1402.2,\"status\":\"success\"},{\"order_no\":\"f6Fe2de5-5039-b85e-9bA9-f36d9Ff7E3Ce\",\"timestamp\":25825046082,\"username\":\"Scott Perez\",\"price\":4768,\"status\":\"pending\"},{\"order_no\":\"53f52bf6-aaEb-999c-6af7-4b93e9bD1248\",\"timestamp\":25825046082,\"username\":\"Linda Hall\",\"price\":2423.8,\"status\":\"pending\"},{\"order_no\":\"746DeBde-2BfA-3F6a-91AC-6a9DC5ff9463\",\"timestamp\":25825046082,\"username\":\"Susan White\",\"price\":8515.4,\"status\":\"pending\"},{\"order_no\":\"89ecD3BF-D571-9eA0-B5AE-dDbACdf0Cab3\",\"timestamp\":25825046082,\"username\":\"Daniel Robinson\",\"price\":4646.87,\"status\":\"success\"},{\"order_no\":\"BeDEeD3D-2f27-CE2f-A69E-CFeb1bB9C6D3\",\"timestamp\":25825046082,\"username\":\"Sarah Moore\",\"price\":9337.78,\"status\":\"pending\"},{\"order_no\":\"4c278E88-8f0A-D9Cd-F3Ef-E83c465eB3BC\",\"timestamp\":25825046082,\"username\":\"Ronald Young\",\"price\":8958.88,\"status\":\"pending\"},{\"order_no\":\"2D5aAd13-96eF-4c5c-E117-9d6fbeB8bf8f\",\"timestamp\":25825046082,\"username\":\"Jason Jackson\",\"price\":7296,\"status\":\"success\"},{\"order_no\":\"4577d6B6-1E2e-AC5B-A669-3844c19A7811\",\"timestamp\":25825046082,\"username\":\"Ruth Miller\",\"price\":1896.47,\"status\":\"success\"},{\"order_no\":\"291D4eD8-f727-E3f9-f6D9-9822bc05bDa2\",\"timestamp\":25825046082,\"username\":\"Thomas Smith\",\"price\":3673,\"status\":\"pending\"},{\"order_no\":\"7dAf89c9-B7bE-348b-A9CF-AAfaF9592c97\",\"timestamp\":25825046082,\"username\":\"Michael Taylor\",\"price\":1159.71,\"status\":\"pending\"},{\"order_no\":\"2d0eC1AF-F7B7-7bEc-b29a-7b9BCb59f8d4\",\"timestamp\":25825046082,\"username\":\"Jeffrey Jackson\",\"price\":2352.77,\"status\":\"success\"},{\"order_no\":\"bFA04C47-31d7-4b3C-a8cF-cfA9Efd4E46c\",\"timestamp\":25825046082,\"username\":\"Joseph Gonzalez\",\"price\":5544.6,\"status\":\"success\"},{\"order_no\":\"A5fC8CA6-BFf3-31A2-3A8F-8ecefCfCA737\",\"timestamp\":25825046082,\"username\":\"Timothy Lopez\",\"price\":7570.38,\"status\":\"pending\"},{\"order_no\":\"f3bFEbcd-1fDA-cbe6-cED1-eB9B59C697fE\",\"timestamp\":25825046082,\"username\":\"Anthony Anderson\",\"price\":13973.8,\"status\":\"success\"},{\"order_no\":\"Fc7bdD6F-dDd5-ddbf-69Ff-eA1A754AAACb\",\"timestamp\":25825046082,\"username\":\"Jason Walker\",\"price\":10213.5,\"status\":\"success\"},{\"order_no\":\"9B5e441C-6DCf-19Ef-2DfE-6FF55A791f8f\",\"timestamp\":25825046082,\"username\":\"Lisa Miller\",\"price\":5670.2,\"status\":\"success\"},{\"order_no\":\"2F90Ff4A-8867-d2DE-F17F-bfcbe6636bee\",\"timestamp\":25825046082,\"username\":\"Jason Hernandez\",\"price\":12915,\"status\":\"success\"},{\"order_no\":\"b629d21A-AB24-D4C3-1fED-4beBA94Cf65C\",\"timestamp\":25825046082,\"username\":\"Margaret Rodriguez\",\"price\":9614,\"status\":\"pending\"},{\"order_no\":\"8bAf7e1D-f1Db-2Ca5-822b-F870e98d9e9b\",\"timestamp\":25825046082,\"username\":\"Linda Thompson\",\"price\":5151.5,\"status\":\"success\"}]}}";
        JSONObject jsonObject=JSONObject.parseObject(str);
        return jsonObject;
    }
}
